package org.wang.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloWorldController {

    @RequestMapping("/")
    public String index() {
        return "Hello Spring Boot 3.3.5!";
    }

    @RequestMapping("/name")
    public String name() {
        return "wangxiaochun";
    }
	
    @RequestMapping("/hello")
    public String hello() {
        return "Hello World";
    }
	
    @RequestMapping("/version")
    public String version() {
        return "version v0.0.1";
    }
}
